package effectivejava.item3problem;

import java.io.Serializable;

public  class   Singleton1  implements Serializable{
	 
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static final Singleton1 sg = new Singleton1();
	
	private Singleton1(){}
	
	public int getHashcode(){
		
		return sg.hashCode();
	}

	public static void main(String[] args) {
		
		Singleton1 s = new Singleton1();
		System.out.println(s.getHashcode());
	}
}
